Skip to content

Feat/488 489 490 491 performance monitoring caching health graceful shutdown#554

Merged
Devsol-01 merged 7 commits intoDevsol-01:mainfrom
Hexstar-labs:feat/488-489-490-491-performance-monitoring-caching-health-graceful-shutdown
Mar 30, 2026
Merged

Feat/488 489 490 491 performance monitoring caching health graceful shutdown#554
Devsol-01 merged 7 commits intoDevsol-01:mainfrom
Hexstar-labs:feat/488-489-490-491-performance-monitoring-caching-health-graceful-shutdown

Conversation

@Hexstar-labs
Copy link
Copy Markdown
Contributor

Performance & Reliability Enhancements

Changes

Implementation

  • 11 new service/controller/module files
  • 5 modified core files (app.module, main.ts, health module, cache module)
  • Zero breaking changes, fully backward compatible
  • No new dependencies required

Closes #488
Closes #489
Closes #490
Closes #491

- Implement QueryLoggerService to track queries exceeding 100ms
- Log slow queries with execution metrics
- Detect N+1 query patterns
- Suggest missing indexes based on query patterns
- Add PerformanceController with endpoints for monitoring
- Provide query statistics and analysis dashboard
- Create CacheStrategyService with Redis-based distributed caching
- Implement cache invalidation on data updates
- Add cache hit/miss metrics tracking
- Support configurable TTL per resource type
- Implement cache warming for critical data
- Add stale-while-revalidate pattern support
- Create CacheInterceptor for automatic GET request caching
- Add CacheConfig decorator for endpoint-level configuration
- Provide cache metrics dashboard
- Implement health indicators for Redis, Email, Soroban RPC, and Horizon
- Add GET /health/detailed endpoint with per-service status
- Track response time metrics for each dependency
- Support degraded state when non-critical services fail
- Add HealthHistoryService for historical health data
- Provide uptime statistics and performance metrics
- Add GET /health/history and GET /health/stats endpoints
- Integration with monitoring tools ready
- Create GracefulShutdownService to manage shutdown lifecycle
- Handle SIGTERM and SIGINT signals properly
- Stop accepting new requests during shutdown
- Wait for in-flight requests to complete (with 25s timeout)
- Close database connections gracefully
- Close Redis connections cleanly
- Add GracefulShutdownInterceptor to track active requests
- Log shutdown process with detailed timing
- Maximum shutdown timeout of 30 seconds
- Handle uncaught exceptions and unhandled rejections
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nestera Ready Ready Preview, Comment Mar 30, 2026 4:52am

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@Hexstar-labs Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Devsol-01 Devsol-01 merged commit 72d5d43 into Devsol-01:main Mar 30, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants